// components/search-head/index.js
const app = getApp()
// console.log(app.globalData.appInfo.menuButton);
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    marginTop: app.globalData.appInfo.menuButton.top,
    height: app.globalData.appInfo.menuButton.height,
    city: '芜湖市'
  },

  /**
   * 组件的方法列表
   */
  methods: {
    selectCity () {
      wx.navigateTo({
        url: '../../pages/select-city/index',
      });
    },
    goSearch () {
      wx.navigateTo({
        url: '../../pages/search-result/index',
      });
    }
  }
})